﻿namespace Simple.Repository.Models.System
{
    public class SysNotice : BusinessEntityBase<Guid>
    {
        /// <summary>
        /// 标题
        /// </summary>
        [MaxLength(200)]
        public string? Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string? Content { get; set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime? SendTime { get; set; }

        /// <summary>
        /// 发送部门
        /// </summary>
        public Guid? DepartmentId { get; set; }

        /// <summary>
        /// 发送班级
        /// </summary>
        public Guid? ClassId { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead { get; set; }

        /// <summary>
        /// 是否属于原始发送数据
        /// </summary>
        public bool IsOriginal { get; set; }

        /// <summary>
        /// 原始数据是否已发送
        /// </summary>
        public bool IsSend { get; set; }

        /// <summary>
        /// URL(冗余，暂时不用)
        /// </summary>
        [MaxLength(500)]
        public string? Url { get; set; }

        /// <summary>
        /// 接收人
        /// </summary>
        public Guid? Receiver { get; set; }
        /// <summary>
        /// 发送人名称
        /// </summary>
        [MaxLength(50)]
        public string? SendUserName { get; set; }

        /// <summary>
        /// 接收端
        /// </summary>
        /// 0:发送给部门用户，1：发送给家长
        public int ReceivingPort{ get; set; }
    }
}
